package com.tamecode.chapter06.sec2.sec623;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationRunner {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("sec6-2/beans-registEditor.xml");
        Boss boss = applicationContext.getBean(Boss.class);
        System.out.println(boss.getCar().getBrand()); // Tsla ModeY
    }

}
